/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

/**
 *
 * @author William
 */
public class DeleteReagentPanel extends javax.swing.JPanel {

    /**
     * Creates new form CreateReagentPanel
     */
    public DeleteReagentPanel() {
        initComponents();
        visibilityFields(false);
        noEditionOnFields();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        nameL = new javax.swing.JLabel();
        descriptionL = new javax.swing.JLabel();
        nameTF = new javax.swing.JTextField();
        expirationFF = new javax.swing.JFormattedTextField();
        expirationL = new javax.swing.JLabel();
        casL = new javax.swing.JLabel();
        casTF = new javax.swing.JTextField();
        liqCodeL = new javax.swing.JLabel();
        liqCodeTF = new javax.swing.JTextField();
        msdsL = new javax.swing.JLabel();
        msdsTF = new javax.swing.JTextField();
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(10, 32767));
        descriptionSP = new javax.swing.JScrollPane();
        descriptionTF = new javax.swing.JTextArea();
        jLabel7 = new javax.swing.JLabel();
        separator2 = new javax.swing.JSeparator();
        locationL = new javax.swing.JLabel();
        roomL = new javax.swing.JLabel();
        roomTF = new javax.swing.JTextField();
        bookcaseL = new javax.swing.JLabel();
        locationLevelL = new javax.swing.JLabel();
        bookcaseTF = new javax.swing.JTextField();
        locationLevelTF = new javax.swing.JTextField();
        containerL = new javax.swing.JLabel();
        containerTF = new javax.swing.JTextField();
        temperatureTF = new javax.swing.JTextField();
        temperatureL = new javax.swing.JLabel();
        amountL = new javax.swing.JLabel();
        amountTF = new javax.swing.JTextField();
        unitsL = new javax.swing.JLabel();
        unitsTF = new javax.swing.JTextField();
        separator3 = new javax.swing.JSeparator();
        securityL = new javax.swing.JLabel();
        unCodeL = new javax.swing.JLabel();
        unCodeTF = new javax.swing.JTextField();
        phaserL = new javax.swing.JLabel();
        phaseRTF = new javax.swing.JTextField();
        phasesL = new javax.swing.JLabel();
        phaseSTF = new javax.swing.JTextField();
        deleteB = new javax.swing.JButton();
        parameterL = new javax.swing.JLabel();
        parameterCB = new javax.swing.JComboBox();
        searchB = new javax.swing.JButton();
        separator1 = new javax.swing.JSeparator();
        cancelB = new javax.swing.JButton();
        parameterTF = new javax.swing.JTextField();
        idL = new javax.swing.JLabel();
        idTF = new javax.swing.JTextField();

        setBackground(new java.awt.Color(255, 255, 255));
        setPreferredSize(new java.awt.Dimension(640, 480));

        nameL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        nameL.setText("Nombre:");

        descriptionL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        descriptionL.setText("Descripción:");

        nameTF.setBackground(new java.awt.Color(204, 255, 255));

        expirationFF.setBackground(new java.awt.Color(204, 255, 255));
        expirationFF.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT))));

        expirationL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        expirationL.setText("Día de Caducidad:");

        casL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        casL.setText("Número CAS:");

        casTF.setBackground(new java.awt.Color(204, 255, 255));

        liqCodeL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        liqCodeL.setText("Código LIQ:");

        liqCodeTF.setBackground(new java.awt.Color(204, 255, 255));

        msdsL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        msdsL.setText("MSDS:");

        msdsTF.setBackground(new java.awt.Color(204, 255, 255));

        descriptionTF.setBackground(new java.awt.Color(204, 255, 255));
        descriptionTF.setColumns(20);
        descriptionTF.setRows(5);
        descriptionSP.setViewportView(descriptionTF);

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel7.setText("Eliminación de Reactivo");

        locationL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        locationL.setText("Localización");

        roomL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        roomL.setText("Cuarto:");

        roomTF.setBackground(new java.awt.Color(204, 255, 255));

        bookcaseL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        bookcaseL.setText("Estante:");

        locationLevelL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        locationLevelL.setText("Nivel:");

        bookcaseTF.setBackground(new java.awt.Color(204, 255, 255));

        locationLevelTF.setBackground(new java.awt.Color(204, 255, 255));

        containerL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        containerL.setText("Contenedor:");

        containerTF.setBackground(new java.awt.Color(204, 255, 255));

        temperatureTF.setBackground(new java.awt.Color(204, 255, 255));

        temperatureL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        temperatureL.setText("Temperatura:");

        amountL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        amountL.setText("Cantidad:");

        amountTF.setBackground(new java.awt.Color(204, 255, 255));

        unitsL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        unitsL.setText("Unidades");

        unitsTF.setBackground(new java.awt.Color(204, 255, 255));

        securityL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        securityL.setText("Seguridad");

        unCodeL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        unCodeL.setText("Código Naciones Unidas:");

        unCodeTF.setBackground(new java.awt.Color(204, 255, 255));

        phaserL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        phaserL.setText("FASE R:");

        phaseRTF.setBackground(new java.awt.Color(204, 255, 255));

        phasesL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        phasesL.setText("FASE S:");

        phaseSTF.setBackground(new java.awt.Color(204, 255, 255));

        deleteB.setBackground(new java.awt.Color(255, 255, 255));
        deleteB.setText("Borrar");

        parameterL.setBackground(new java.awt.Color(255, 255, 255));
        parameterL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        parameterL.setText("Parámetro de Búsqueda");

        parameterCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "ID", "Códgio LIQ", "Nombre" }));

        searchB.setText("Buscar");
        searchB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchBActionPerformed(evt);
            }
        });

        cancelB.setText("Cancelar");
        cancelB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelBActionPerformed(evt);
            }
        });

        parameterTF.setBackground(new java.awt.Color(204, 255, 255));

        idL.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        idL.setText("ID");

        idTF.setBackground(new java.awt.Color(204, 255, 255));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(parameterL)
                                .addGap(18, 18, 18)
                                .addComponent(parameterCB, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(parameterTF, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(241, 241, 241)
                                .addComponent(jLabel7)))
                        .addGap(45, 45, 45)
                        .addComponent(searchB))
                    .addComponent(separator1)
                    .addComponent(separator3)
                    .addComponent(separator2)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(roomL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(temperatureL))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(temperatureTF)
                            .addComponent(roomTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bookcaseL)
                            .addComponent(amountL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(bookcaseTF)
                            .addComponent(amountTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(locationLevelL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(locationLevelTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(unitsL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(unitsTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addComponent(containerL, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(containerTF))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 5, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(expirationL, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(liqCodeL, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(descriptionL)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(idL)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(idTF)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(liqCodeTF, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(expirationFF, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(27, 27, 27)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(casL, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(msdsL, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(28, 28, 28)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(msdsTF, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(casTF, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(descriptionSP, javax.swing.GroupLayout.PREFERRED_SIZE, 472, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(nameL, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(nameTF))))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(locationL, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(securityL, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(deleteB)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(unCodeL)
                                        .addGap(18, 18, 18)
                                        .addComponent(unCodeTF, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(phaserL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(phaseRTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(33, 33, 33)
                                        .addComponent(phasesL, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(phaseSTF, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(cancelB))))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7)
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(parameterL)
                    .addComponent(parameterCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(searchB)
                    .addComponent(parameterTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(10, 10, 10)
                .addComponent(separator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nameL)
                            .addComponent(nameTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(idL)
                            .addComponent(idTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(descriptionL)
                            .addComponent(descriptionSP, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(expirationL)
                                .addComponent(expirationFF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(casL)
                                .addComponent(casTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(liqCodeL)
                            .addComponent(liqCodeTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(msdsL)
                            .addComponent(msdsTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(locationL, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(separator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(20, 20, 20)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(roomL)
                            .addComponent(roomTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(bookcaseL)
                            .addComponent(locationLevelL)
                            .addComponent(bookcaseTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(locationLevelTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(containerL)
                            .addComponent(containerTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(temperatureTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(temperatureL)
                            .addComponent(amountL)
                            .addComponent(amountTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(unitsL)
                            .addComponent(unitsTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(separator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(securityL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(unCodeL)
                            .addComponent(unCodeTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(phaserL)
                            .addComponent(phaseRTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(phasesL)
                            .addComponent(phaseSTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(deleteB)
                    .addComponent(cancelB)))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void searchBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchBActionPerformed
        visibilityFields(true);
    }//GEN-LAST:event_searchBActionPerformed

    private void cancelBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelBActionPerformed
        visibilityFields(false);
    }//GEN-LAST:event_cancelBActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel amountL;
    private javax.swing.JTextField amountTF;
    private javax.swing.JLabel bookcaseL;
    private javax.swing.JTextField bookcaseTF;
    private javax.swing.JButton cancelB;
    private javax.swing.JLabel casL;
    private javax.swing.JTextField casTF;
    private javax.swing.JLabel containerL;
    private javax.swing.JTextField containerTF;
    private javax.swing.JButton deleteB;
    private javax.swing.JLabel descriptionL;
    private javax.swing.JScrollPane descriptionSP;
    private javax.swing.JTextArea descriptionTF;
    private javax.swing.JFormattedTextField expirationFF;
    private javax.swing.JLabel expirationL;
    private javax.swing.Box.Filler filler1;
    private javax.swing.JLabel idL;
    private javax.swing.JTextField idTF;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel liqCodeL;
    private javax.swing.JTextField liqCodeTF;
    private javax.swing.JLabel locationL;
    private javax.swing.JLabel locationLevelL;
    private javax.swing.JTextField locationLevelTF;
    private javax.swing.JLabel msdsL;
    private javax.swing.JTextField msdsTF;
    private javax.swing.JLabel nameL;
    private javax.swing.JTextField nameTF;
    private javax.swing.JComboBox parameterCB;
    private javax.swing.JLabel parameterL;
    private javax.swing.JTextField parameterTF;
    private javax.swing.JTextField phaseRTF;
    private javax.swing.JTextField phaseSTF;
    private javax.swing.JLabel phaserL;
    private javax.swing.JLabel phasesL;
    private javax.swing.JLabel roomL;
    private javax.swing.JTextField roomTF;
    private javax.swing.JButton searchB;
    private javax.swing.JLabel securityL;
    private javax.swing.JSeparator separator1;
    private javax.swing.JSeparator separator2;
    private javax.swing.JSeparator separator3;
    private javax.swing.JLabel temperatureL;
    private javax.swing.JTextField temperatureTF;
    private javax.swing.JLabel unCodeL;
    private javax.swing.JTextField unCodeTF;
    private javax.swing.JLabel unitsL;
    private javax.swing.JTextField unitsTF;
    // End of variables declaration//GEN-END:variables

    private void visibilityFields(final boolean  visibility) {
        idL.setVisible(visibility);
        idTF.setVisible(visibility);
        nameL.setVisible(visibility);
        nameTF.setVisible(visibility);
        descriptionL.setVisible(visibility);
        descriptionTF.setVisible(visibility);
        descriptionSP.setVisible(visibility);
        expirationFF.setVisible(visibility);
        expirationL.setVisible(visibility);
        casL.setVisible(visibility);
        casTF.setVisible(visibility);
        liqCodeL.setVisible(visibility);
        liqCodeTF.setVisible(visibility);
        msdsL.setVisible(visibility);
        msdsTF.setVisible(visibility);
        separator2.setVisible(visibility);
        locationL.setVisible(visibility);
        roomL.setVisible(visibility);
        roomTF.setVisible(visibility);
        bookcaseL.setVisible(visibility);
        bookcaseTF.setVisible(visibility);
        locationLevelL.setVisible(visibility);
        locationLevelTF.setVisible(visibility);
        containerL.setVisible(visibility);
        containerTF.setVisible(visibility);
        temperatureL.setVisible(visibility);
        temperatureTF.setVisible(visibility);
        amountTF.setVisible(visibility);
        amountL.setVisible(visibility);
        unitsL.setVisible(visibility);
        unitsTF.setVisible(visibility);
        separator3.setVisible(visibility);
        unCodeL.setVisible(visibility);
        unCodeTF.setVisible(visibility);
        securityL.setVisible(visibility);
        phaseRTF.setVisible(visibility);
        phaserL.setVisible(visibility);
        phaseSTF.setVisible(visibility);
        phasesL.setVisible(visibility);
        deleteB.setVisible(visibility);
        cancelB.setVisible(visibility);
        parameterCB.setVisible(!visibility);
        parameterL.setVisible(!visibility);
        parameterTF.setVisible(!visibility);
        searchB.setVisible(!visibility);
    }
    private void noEditionOnFields() {        
        idTF.setEditable(false);
        nameTF.setEditable(false);
        descriptionTF.setEditable(false);
        descriptionTF.setEditable(false);
        expirationFF.setEditable(false);
        casTF.setEditable(false);
        liqCodeTF.setEditable(false);
        msdsTF.setEditable(false);
        roomTF.setEditable(false);
        bookcaseTF.setEditable(false);
        locationLevelTF.setEditable(false);
        containerTF.setEditable(false);
        temperatureTF.setEditable(false);
        amountTF.setEditable(false);
        unitsTF.setEditable(false);        
        unCodeTF.setEditable(false);
        phaseRTF.setEditable(false);
        phaseSTF.setEditable(false);
    }
}
